<?php
namespace App\Utils;
/**
 * Class Reg
 * @package App\Utils
 * @author zjw
 * 常用正则
 */
class Reg{

    protected static $phonePattern = "/^1[123456789]\d{9}$/";

    /**
     * @param string $phone
     * @return false|int
     */
    public static function checkPhone(string $phone){
        return preg_match(static::$phonePattern, $phone);
    }
}
